import 'package:flutter_eve_plugin/model/health/user_info.dart';
import 'package:json_annotation/json_annotation.dart';

part 'bind_result.g.dart';

@JsonSerializable()
class BindResultModel {
  final int code;
  final String message;
  final BindResultInfo data;

  BindResultModel(this.code, this.message, this.data);

  factory BindResultModel.fromJson(Map<String, dynamic> json) =>
      _$BindResultModelFromJson(json);

  Map<String, dynamic> toJson() => _$BindResultModelToJson(this);
}

@JsonSerializable()
class BindResultInfo {
  final bool isActivateVip;
  final int userVip;
  final int delayTime;
  final int expiryTime;
  final int deviceId;
  final String idol;
  final List<IdolInfo> idolList;

  BindResultInfo(this.isActivateVip, this.userVip, this.delayTime,
      this.expiryTime, this.deviceId, this.idol, this.idolList);

  factory BindResultInfo.fromJson(Map<String, dynamic> json) =>
      _$BindResultInfoFromJson(json);

  Map<String, dynamic> toJson() => _$BindResultInfoToJson(this);
}

